Checking the modularization of software systems by analyzing co-changing source code files

Final report

The System under Investigation

DropOver

Idea

Data

Each commit and their changed file

Reading in the data


In [1]:
from lib.ozapfdis.git_tc import log_numstat

GIT_REPO_DIR = "../../dropover_git/"
git_log = log_numstat(GIT_REPO_DIR)[['sha', 'file']]
git_log.head()


Out[1]:
sha file
1 8c686954 backend/pom-2016-07-16_04-40-56-752.xml
4 97c6ef96 backend/src/test/java/at/dropover/scheduling/i...
6 3f7cf92c backend/src/main/webapp/app/widgets/gallery/js...
7 3f7cf92c backend/src/main/webapp/app/widgets/gallery/vi...
9 ec85fe73 backend/src/main/java/at/dropover/files/intera...

Filtering out non-production code


In [2]:
prod_code = git_log.copy()
prod_code = prod_code[prod_code.file.str.endswith(".java")]
prod_code = prod_code[prod_code.file.str.startswith("backend/src/main")]
prod_code = prod_code[~prod_code.file.str.endswith("package-info.java")]
prod_code.head()


Out[2]:
sha file
9 ec85fe73 backend/src/main/java/at/dropover/files/intera...
5053 bfea33b8 backend/src/main/java/at/dropover/scheduling/i...
5066 ab9ad48e backend/src/main/java/at/dropover/scheduling/i...
5070 0732e9cb backend/src/main/java/at/dropover/files/intera...
5078 ba1fd215 backend/src/main/java/at/dropover/framework/co...

Analysis

We want to see which files are changing (almost) together. A good start for this is to create this view onto our dataset with the pivot_table method of the underlying pandas' DataFrame.

But before this, we need a marker column that signals that a commit occurred. We can create an additional column named hit for this easily.


In [3]:
prod_code['hit'] = 1
prod_code.head()


Out[3]:
sha file hit
9 ec85fe73 backend/src/main/java/at/dropover/files/intera... 1
5053 bfea33b8 backend/src/main/java/at/dropover/scheduling/i... 1
5066 ab9ad48e backend/src/main/java/at/dropover/scheduling/i... 1
5070 0732e9cb backend/src/main/java/at/dropover/files/intera... 1
5078 ba1fd215 backend/src/main/java/at/dropover/framework/co... 1

Now, we can transform the data as we need it: For the index, we choose the filename, as columns, we choose the unique sha key of a commit. Together with the commit hits as values, we are now able to see which file changes occurred in which commit. Note that the pivoting also change the order of both indexes. They are now sorted alphabetically.


In [4]:
commit_matrix = prod_code.reset_index().pivot_table(
    index='file',
    columns='sha',
    values='hit',
    fill_value=0)
commit_matrix.iloc[0:5,50:55]


Out[4]:
sha 3597d8a2 3b70ea7e 3d3be4ca 3e4ae692 429b3b32
file
backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java 0 0 0 0 0
backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java 0 0 0 1 0
backend/src/main/java/at/dropover/comment/boundary/CommentData.java 0 0 0 1 0
backend/src/main/java/at/dropover/comment/boundary/GetCommentRequestModel.java 0 0 0 0 0
backend/src/main/java/at/dropover/comment/boundary/GetCommentResponseModel.java 0 0 0 0 0

As already mentioned in a previous blog post, we are now able to look at our problem from a mathematician' s perspective. What we have here now with the commit_matrix is a collection of n-dimensional vectors. Each vector represents a filename and the components/dimensions of such a vector are the commits with either the value 0 or 1.

Calculating similarities between such vectors is a well-known problem with a variety of solutions. In our case, we calculate the distance between the various vectors with the cosines distance metric. The machine learning library scikit-learn provides us with an easy to use implementation.


In [58]:
import numpy as np

from matplotlib import pyplot as plt
from scipy.cluster.hierarchy import dendrogram
from sklearn.datasets import load_iris
from sklearn.cluster import AgglomerativeClustering

def plot_dendrogram(model, **kwargs):

    # Children of hierarchical clustering
    children = model.children_

    # Distances between each pair of children
    # Since we don't have this information, we can use a uniform one for plotting
    distance = np.arange(children.shape[0])

    # The number of observations contained in each cluster level
    no_of_observations = np.arange(2, children.shape[0]+2)

    # Create linkage matrix and then plot the dendrogram
    linkage_matrix = np.column_stack(
        [children, distance, no_of_observations]).astype(float)

    # Plot the corresponding dendrogram
    dendrogram(linkage_matrix, orientation='right', leaf_font_size=14, **kwargs)


X= commit_matrix
model = AgglomerativeClustering(n_clusters=3)
model = model.fit(X)
plt.figure(figsize=(10,80))
plt.title('Hierarchical Clustering Dendrogram for\nco-changing source code files', size="20")
plot_dendrogram(model, labels=tuple(zip(X.index, modules.index)))
plt.savefig('test.png', bbox_inches='tight')
plt.show()



In [59]:
from sklearn.metrics.pairwise import cosine_distances

dissimilarity_matrix = cosine_distances(commit_matrix)
dissimilarity_matrix[:5,:5]


Out[59]:
array([[ 0.        ,  0.29289322,  0.5       ,  0.18350342,  0.29289322],
       [ 0.29289322,  0.        ,  0.29289322,  0.1339746 ,  0.5       ],
       [ 0.5       ,  0.29289322,  0.        ,  0.59175171,  0.29289322],
       [ 0.18350342,  0.1339746 ,  0.59175171,  0.        ,  0.42264973],
       [ 0.29289322,  0.5       ,  0.29289322,  0.42264973,  0.        ]])

In [78]:
from sklearn.decomposition import PCA

pca = PCA(n_components=2)

principalComponents = pca.fit_transform(X)

principalDf = pd.DataFrame(data = principalComponents
             , columns = ['principal component 1', 'principal component 2'])

finalDf = pd.concat([principalDf, modules.reset_index()[['module']]], axis = 1)
finalDf.head()


Out[78]:
principal component 1 principal component 2 module
0 -0.294463 -0.584800 comment
1 -0.775555 -0.398396 comment
2 -0.321314 -0.531619 comment
3 -0.683570 -0.385591 comment
4 -0.229329 -0.518814 comment

In [87]:
import numpy as np
from matplotlib import cm

fig = plt.figure(figsize = (8,8))
ax = fig.add_subplot(1,1,1) 
ax.set_xlabel('Principal Component 1', fontsize = 15)
ax.set_ylabel('Principal Component 2', fontsize = 15)
ax.set_title('2 component PCA', fontsize = 20)

targets = finalDf['module'].unique()
colors = [x for x in cm.Spectral(np.linspace(0,1,len(targets)))]

for target, color in zip(targets,colors):
    indicesToKeep = finalDf['module'] == target
    ax.scatter(finalDf.loc[indicesToKeep, 'principal component 1']
               , finalDf.loc[indicesToKeep, 'principal component 2']
               , c = color
               , s = 100
               , alpha=0.5)
ax.legend(targets)
ax.grid()



In [88]:
plot_data = pd.DataFrame(index=finalDf['module'])
plot_data['value'] = tuple(zip(
    finalDf['principal component 1'],
    finalDf['principal component 2']))
plot_data['label'] = commit_matrix.index
plot_data['data'] = plot_data[['label', 'value']].to_dict('records')
plot_dict = plot_data.groupby(plot_data.index).data.apply(list)
plot_dict


Out[88]:
module
comment       [{'label': 'backend/src/main/java/at/dropover/...
creator       [{'label': 'backend/src/main/java/at/dropover/...
files         [{'label': 'backend/src/main/java/at/dropover/...
framework     [{'label': 'backend/src/main/java/at/dropover/...
mail          [{'label': 'backend/src/main/java/at/dropover/...
scheduling    [{'label': 'backend/src/main/java/at/dropover/...
site          [{'label': 'backend/src/main/java/at/dropover/...
todo          [{'label': 'backend/src/main/java/at/dropover/...
Name: data, dtype: object

In [89]:
import pygal

xy_chart = pygal.XY(stroke=False)
[xy_chart.add(entry[0], entry[1]) for entry in plot_dict.iteritems()]   
# uncomment to create the interactive chart
xy_chart.render_in_browser()
xy_chart


file://C:/Users/Markus/AppData/Local/Temp/tmpv7inueht.html
Out[89]:
Pygal-0.4-0.4000.40.40.80.81.21.21.61.6222.42.4-1.6-1.6-1.2-1.2-0.8-0.8-0.4-0.4000.40.40.80.81.21.21.61.6222.42.42.82.8backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java-0.2944629133: -0.5847995546210.18891558854395497.56932641326694backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java-0.7755549167: -0.3983961704148.919233383832467.55159001993326backend/src/main/java/at/dropover/comment/boundary/CommentData.java-0.3213142629: -0.5316193167206.76925023948615489.00537051635905backend/src/main/java/at/dropover/comment/boundary/GetCommentRequestModel.java-0.6835696214: -0.3855906588160.63406084622784465.4894361004325backend/src/main/java/at/dropover/comment/boundary/GetCommentResponseModel.java-0.2293289675: -0.5188138052218.4840777018817486.9432165968591backend/src/main/java/at/dropover/comment/boundary/GetCommentsRequestModel.java-0.2944629133: -0.5847995546210.18891558854384497.5693264132671backend/src/main/java/at/dropover/comment/boundary/GetCommentsResponseModel.java-0.2293289675: -0.5188138052218.48407770188214486.9432165968592backend/src/main/java/at/dropover/comment/boundary/GetRangedCommentsRequestModel.java-0.7755549167: -0.3983961704148.9192333838321467.55159001993275backend/src/main/java/at/dropover/comment/boundary/TimeDiffRequestModel.java-0.2318702905: -0.525852571218.16042640522895488.07671435117874backend/src/main/java/at/dropover/comment/boundary/TimeDiffResponseModel.java-0.3213142629: -0.5316193167206.769250239486489.0053705163593backend/src/main/java/at/dropover/comment/delivery/rest/CommentResource.java-0.5610106785: 0.6735275395176.24260854090258294.9328175817949backend/src/main/java/at/dropover/comment/delivery/rest/CommentsResource.java-1.111526177: 1.09513679106.13146678377879227.03836708507367backend/src/main/java/at/dropover/comment/entity/Comment.java-0.3213142629: -0.5316193167206.769250239486489.0053705163593backend/src/main/java/at/dropover/comment/entity/gateway/CommentGateway.java-0.7180390328: 0.3263508673156.24419389314045350.8409110649423backend/src/main/java/at/dropover/comment/entity/gateway/aws/CommentSorter.java0.2011279253: -0.635844439273.3051032954464505.7894126095358backend/src/main/java/at/dropover/comment/entity/gateway/aws/DynamoDbCommentGateway.java0.2011672708: 0.01379805918273.3101141528072401.17330092015504backend/src/main/java/at/dropover/comment/entity/gateway/exception/NotSoManyCommentsAvailable.java0.2567855793: -0.6421940449280.39340812213624506.811930500033backend/src/main/java/at/dropover/comment/entity/gateway/inmemory/InMemoryCommentStorage.java-0.3386490281: 0.1131889959204.5615736462503385.16773883506727backend/src/main/java/at/dropover/comment/entity/pojo/PojoComment.java-0.7180390328: 0.3263508673156.2441938931404350.8409110649423backend/src/main/java/at/dropover/comment/interactor/AddComment.java-0.8871233408: 1.088475241134.71038799781167228.11111921067715backend/src/main/java/at/dropover/comment/interactor/ChangeComment.java-1.150035948: 1.024384935101.22703804437847238.43199358768345backend/src/main/java/at/dropover/comment/interactor/CommentResponseBuilder.java-0.9802215867: 0.4743861494122.85382024188874327.0018370415921backend/src/main/java/at/dropover/comment/interactor/CreateTimeDiff.java-0.8071323798: 0.5556344768144.89767177508074313.9178960717535backend/src/main/java/at/dropover/comment/interactor/GetComments.java-0.4117845462: 0.1923287313195.24736779159156372.4233580052585backend/src/main/java/at/dropover/comment/interactor/GetRangedComments.java-0.5037698416: 0.1795232198183.53254032919537374.4855119247585backend/src/main/java/at/dropover/comment/interactor/exception/CommentNotFoundException.java-0.2968934525: -0.2016718392209.87937321502187435.87180511965255backend/src/main/java/at/dropover/comment/interactor/exception/PostNotInPastException.java-0.2293289675: -0.5188138052218.4840777018821486.9432165968593backend/src/main/java/at/dropover/comment/interactor/validation/CommentRequestValidator.java-0.3768103486: 0.1079856218199.7015220049349386.0056716528983backend/src/main/java/at/dropover/creator/boundary/CreatorData.java-0.2293289675: -0.5188138052218.4840777018821486.9432165968593backend/src/main/java/at/dropover/creator/entity/Creator.java-0.1066669023: -0.3970632502234.10575858877172467.33694130239667backend/src/main/java/at/dropover/creator/entity/exception/CreatorNotPersistentException.java0.1695475833: -0.4951794333269.2831750376647483.1372216195979backend/src/main/java/at/dropover/creator/entity/gateway/CreatorGateway.java-0.1143062898: 0.7664424232233.1328410572696279.97013599658555backend/src/main/java/at/dropover/creator/entity/gateway/CreatorKey.java0.1013180344: -0.197308342260.5937710359627435.16912309144783backend/src/main/java/at/dropover/creator/entity/gateway/aws/DynamoDbCreatorGateway.java0.3718393257: 0.2266979503295.0461282423507366.88866152063395backend/src/main/java/at/dropover/creator/entity/gateway/inmemory/InMemoryCreatorGateway.java-0.1447164936: 0.8113291319229.25993627563707272.7417404638403backend/src/main/java/at/dropover/creator/entity/pojo/PojoCreator.java-0.3713043066: 0.3758358821200.4027463811062342.87202071372946backend/src/main/java/at/dropover/creator/interactor/FormatCreatorNicely.java-0.2545064577: -0.1755055786215.27758744134016431.6580838129725backend/src/main/java/at/dropover/files/boundary/DownloadFileRequestModel.java0.3253389994: -0.7055076613289.1240588823878517.0077295506261backend/src/main/java/at/dropover/files/boundary/DownloadFileResponseModel.java0.3318840771: -0.7024842474289.95761010519095516.5208497539194backend/src/main/java/at/dropover/files/boundary/ListFilesResponseModel.java0.3253389994: -0.7055076613289.1240588823878517.0077295506261backend/src/main/java/at/dropover/files/boundary/ReportAbuseRequestModel.java0.3024502567: -0.6912953478286.2090530565469514.7190292669562backend/src/main/java/at/dropover/files/boundary/ReportAbuseResponeModel.java0.2746396619: -0.6396298943282.6672226062928506.3990088400992backend/src/main/java/at/dropover/files/boundary/UploadFileRequestModel.java0.3645640286: -0.7267732194294.1195795997421520.43225921476backend/src/main/java/at/dropover/files/boundary/UploadFileResponseModel.java0.3580189509: -0.7297966333293.28602837693904520.9191390114668backend/src/main/java/at/dropover/files/delivery/rest/FilesResource.java0.3336271729: -0.08707034273290.17960283295366417.41678872939116backend/src/main/java/at/dropover/files/entity/UploaderInformation.java0.2044843889: -0.03341562308273.7325671726816408.77642397648685backend/src/main/java/at/dropover/files/entity/gateway/StreamingFileGateway.java0.2497140393: -0.04655086594279.49280905502286410.8916766551422backend/src/main/java/at/dropover/files/entity/gateway/inmemory/FileWithMetadata.java0.3040877461: -0.6793713998286.4175962391078512.7988391955694backend/src/main/java/at/dropover/files/entity/gateway/inmemory/InMemoryFileGateway.java0.3659704461: 0.1928715655294.29869451871514372.3359419194726backend/src/main/java/at/dropover/files/entity/gateway/s3/S3FileGateway.java0.295625713: 0.1534978604285.33991030955747378.67654301394464backend/src/main/java/at/dropover/files/entity/pojo/PojoUploaderInfo.java0.2214412394: -0.03793243567275.89211427359965409.503795372202backend/src/main/java/at/dropover/files/exception/FileNotPersistentException.java0.0982911085: 0.2159701304260.20827557271946368.61623138241544backend/src/main/java/at/dropover/files/exception/FileTransferException.java0.0982911085: 0.2159701304260.20827557271946368.61623138241544backend/src/main/java/at/dropover/files/exception/InvalidFileException.java0.0982911085: 0.2159701304260.20827557271946368.61623138241544backend/src/main/java/at/dropover/files/interactor/DownloadFile.java0.2328167009: 0.1897950002277.34084114585573372.83138102893025backend/src/main/java/at/dropover/files/interactor/ListFiles.java0.2926050465: -0.01533243519284.95521201208464405.8643718718165backend/src/main/java/at/dropover/files/interactor/ReportAbuse.java0.2198037499: -0.04985638366275.6835710910388411.4239854435889backend/src/main/java/at/dropover/files/interactor/UploadFile.java0.2841848274: 0.1799590065283.8828513352795374.4153343809246backend/src/main/java/at/dropover/files/validation/FileTransferValidator.java0.1344638983: 0.1810146965264.8150770187917374.24532983370557backend/src/main/java/at/dropover/framework/autoupdate/Autoupdate.java0.1484443066: 0.01708192066266.59555802095014400.64447957443815backend/src/main/java/at/dropover/framework/autoupdate/DynamoDBCurrentVersionDeterminor.java0.1484443066: 0.01708192066266.59555802095014400.64447957443815backend/src/main/java/at/dropover/framework/autoupdate/IllegalUpdateScriptsException.java0.1444766067: 0.02737579395266.09024986363437398.98679092247426backend/src/main/java/at/dropover/framework/autoupdate/UpdateScript.java0.2480476639: -0.6288738561279.2805870873764504.66689479352067backend/src/main/java/at/dropover/framework/autoupdate/scripts/UpdateToV1.java0.1484443066: 0.01708192066266.59555802095014400.64447957443815backend/src/main/java/at/dropover/framework/boundary/DropoverModel.java-0.8100243282: 0.3135453558144.5293664307442352.9030649844424backend/src/main/java/at/dropover/framework/boundary/RequestModel.java-0.8100243282: 0.3135453558144.5293664307442352.9030649844424backend/src/main/java/at/dropover/framework/boundary/ResponseModel.java-0.6184356756: -0.3196049095168.92922295956672454.86332628402465backend/src/main/java/at/dropover/framework/boundary/SiteDependentRequestModel.java0.1005635702: -0.7139043426260.4976859296403518.3599011802919backend/src/main/java/at/dropover/framework/boundary/SynchronousDeliveryInteractorBoundary.java-0.7180390328: 0.3263508673156.2441938931404350.8409110649423backend/src/main/java/at/dropover/framework/configuration/ConfigurationFile.java0.2946395799: 0.0559404514285.2143208964299394.38684033006297backend/src/main/java/at/dropover/framework/configuration/GatewayFactory.java0.3278740826: -0.6505851948289.4469155087689508.16321136138305backend/src/main/java/at/dropover/framework/configuration/InterceptorFactory.java0.2565302194: 0.08446887958280.36088665284933389.79272397010027backend/src/main/java/at/dropover/framework/configuration/MisconfigurationException.java0.2481231648: -0.6708378598279.290202540077511.42462833746686backend/src/main/java/at/dropover/framework/delivery/LocaleDeterminator.java0.1765258137: 0.1591941838270.1718906237824377.7592274064183backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/GenericDropoverMessageBody.java-0.3289323248: 0.1271419716205.79904863545588382.9208013777769backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/InteractorException2Status.java-0.783280603: 0.6557410442147.93532523282457297.79709137540965backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/JsonMessageBody.java-0.3289323248: 0.1271419716205.79904863545588382.9208013777769backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/XMLMessageBody.java-0.3119754743: 0.122625159207.95859573637392383.648172773492backend/src/main/java/at/dropover/framework/dependencyinjection/GuiceConfig.java-1.385600314: 1.20778002471.22663537453988208.8987023141271backend/src/main/java/at/dropover/framework/entity/aws/AWS.java-0.4349387262: 0.4648423965192.29855708225503328.5387289785547backend/src/main/java/at/dropover/framework/entity/aws/BetweenWrapper.java-0.2322286632: -0.4555817101218.11478569469597476.76054545269113backend/src/main/java/at/dropover/framework/entity/aws/ConditionWrapper.java-0.2026353937: -0.414870886221.88364946115115470.20461948765364backend/src/main/java/at/dropover/framework/entity/aws/KeyValue.java-0.3224092101: 0.2941384956206.6298027567747356.0282765534091backend/src/main/java/at/dropover/framework/entity/gateway/CreatedAtComparator.java-0.3121811889: -0.4536270454207.93239685801782476.44577322434094backend/src/main/java/at/dropover/framework/entity/gateway/exception/InvalidGatewayConfigurationException.java0.2480476639: -0.6288738561279.2805870873764504.66689479352067backend/src/main/java/at/dropover/framework/entity/gateway/exception/InvalidPersistentDataException.java-0.2293289675: -0.5188138052218.4840777018821486.94321659685926backend/src/main/java/at/dropover/framework/entity/gateway/exception/PersistenceMechanismNotAvailableException.java-0.2770643824: -0.5126731499212.4047130979209485.9543473603694backend/src/main/java/at/dropover/framework/exception/InvalidRequestException.java0.0982911085: 0.2159701304260.20827557271946368.61623138241544backend/src/main/java/at/dropover/framework/exception/NotPersistentException.java0.0982911085: 0.2159701304260.20827557271946368.61623138241544backend/src/main/java/at/dropover/framework/internationalization/Translation.java-0.7357530028: 0.3464866099153.988223512445347.5983228730896backend/src/main/java/at/dropover/framework/util/DoubleMap.java0.0982911085: 0.2159701304260.20827557271946368.61623138241544backend/src/main/java/at/dropover/mail/boundary/SendMailToCreatorRequestModel.java0.3179384882: -0.5896441867288.1815635468766498.349488696364backend/src/main/java/at/dropover/mail/boundary/SendMailToCreatorResponseModel.java0.2764742306: -0.7072038645282.90086490607433517.2808800768402backend/src/main/java/at/dropover/mail/entity/channel/MailChannel.java0.3075166926: -0.7434167846286.85429121806465523.1124796090677backend/src/main/java/at/dropover/mail/entity/channel/common/MailChannelValidator.java0.3314342843: -0.7837983605289.9003265526682529.6153846153846backend/src/main/java/at/dropover/mail/entity/channel/email/EmailChannel.java0.2209092281: -0.1156941439275.824359741911422.0262636231713backend/src/main/java/at/dropover/mail/entity/channel/inmemory/InMemoryMailChannel.java0.3205125853: -0.7616499207288.50938880833723526.0486788422537backend/src/main/java/at/dropover/mail/interactor/SendMailToCreator.java0.05635884452: 0.2145112388254.86797377934607368.8511660964021backend/src/main/java/at/dropover/mail/interactor/validation/SendMailValidation.java0.1941267953: -0.01441868821272.41347132246534405.7172253164713backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingDateRequestModel.java0.4986589425: -0.58598872311.1972959313124497.7608253762774backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingDateResponseModel.java0.6668635608: -0.4943596485332.6190685557702483.00520639286924backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingRequestModel.java1.156510112: 0.1349501057394.9782189127283381.6634072923862backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingResponseModel.java0.9901741727: 0.05727823409373.79443273530654394.17140857583865backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingUserRequestModel.java0.657787888: -0.4621440627331.4632322844088477.81732331627177backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingUserResponseModel.java0.657787888: -0.4621440627331.4632322844088477.81732331627177backend/src/main/java/at/dropover/scheduling/boundary/DeleteSchedulingUserRequestModel.java0.2480188058: 0.08847222539279.27691185220783389.14803943493337backend/src/main/java/at/dropover/scheduling/boundary/DeleteSchedulingUserResponseModel.java0.2682617842: -0.6406655463281.8549652045826506.56578653377204backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingDateRequestModel.java0.5462233277: -0.5635579135317.2548789873375494.1486482742943backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingDateResponseModel.java0.5462233277: -0.5635579135317.2548789873375494.1486482742943backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingRequestModel.java0.466451079: -0.4971750392307.09544940310803483.4585868769255backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingResponseModel.java1.0734085: 0.1181774307384.39477678830787384.3644190888165backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingsRequestModel.java0.480229061: -0.4755759512308.85015032183424479.98034675861203backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingsResponseModel.java0.5394231847: -0.4854174659316.3888438063001481.5651891823428backend/src/main/java/at/dropover/scheduling/boundary/SetFinalDateRequestModel.java0.4258874297: -0.5434840102301.92944812983245490.9160184609759backend/src/main/java/at/dropover/scheduling/boundary/VoteForSchedulingDateRequestModel.java0.666406315: 0.3252422335332.56083581955704351.0194414996713backend/src/main/java/at/dropover/scheduling/boundary/VoteForSchedulingDateResponseModel.java0.5257763668: -0.5482186505314.65084734019393491.67846805114726backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingDateResource.java0.8339041222: 0.3502223567353.8925922071481346.9967315226272backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingDatesResource.java0.590409176: 0.2855722725322.88218698609325357.4077505807333backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingResource.java0.4337429186: 1.015618266302.929887355837239.8437466582859backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingUserResource.java0.2009260095: 0.04890721894273.2793882084973395.5194470091601backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingUsersResource.java0.5101814652: 0.2538851741312.6647518380878362.51052793848896backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingsResource.java0.3431310074: 1.073583739291.38996782975744230.50919350563692backend/src/main/java/at/dropover/scheduling/entity/Scheduling.java1.568957279: 0.3717925783447.505607986671343.52313995121165backend/src/main/java/at/dropover/scheduling/entity/SchedulingDate.java1.029239815: 0.5477146569378.76965462955326315.1932756396356backend/src/main/java/at/dropover/scheduling/entity/SchedulingKey.java0.2922237021: 0.1295336388284.9066457308813382.53565582086566backend/src/main/java/at/dropover/scheduling/entity/SchedulingUser.java0.657787888: -0.4621440627331.4632322844088477.81732331627177backend/src/main/java/at/dropover/scheduling/entity/exception/SchedulingNotPersistentException.java0.4901517108: -0.1748803782310.11385371994777431.55740377081764backend/src/main/java/at/dropover/scheduling/entity/gateway/DateKey.java0.5013998809: -0.4346534922311.5463693425835473.3903398658001backend/src/main/java/at/dropover/scheduling/entity/gateway/LoadSchedulingDate.java0.4258874297: -0.5434840102301.92944812983245490.9160184609759backend/src/main/java/at/dropover/scheduling/entity/gateway/SchedulingGateway.java2.678792009: 2.304570658588.849094737279132.27544912622801backend/src/main/java/at/dropover/scheduling/entity/gateway/aws/DynamoDbSchedulingGateway.java1.236241124: 1.292342912405.1323968106893195.2809963603458backend/src/main/java/at/dropover/scheduling/entity/gateway/inmemory/InMemorySchedulingGateway.java2.829769688: 2.440507806608.076923076923110.384615384615358backend/src/main/java/at/dropover/scheduling/entity/pojo/PojoScheduling.java2.015057047: 1.564993361504.31883878277864151.37434015135955backend/src/main/java/at/dropover/scheduling/entity/pojo/PojoSchedulingDate.java0.7203495895: 0.2729783002339.4308051029997359.43583897625615backend/src/main/java/at/dropover/scheduling/entity/pojo/PojoSchedulingUser.java0.657787888: -0.4621440627331.4632322844088477.81732331627177backend/src/main/java/at/dropover/scheduling/exception/DuplicateKeyException.java0.1978944658: -0.4299856463272.89330463914575472.6386466014979backend/src/main/java/at/dropover/scheduling/exception/DuplicateSchedulingPositionException.java0.1978944658: -0.4299856463272.89330463914575472.6386466014979backend/src/main/java/at/dropover/scheduling/interactor/AddScheduling.java1.368883997: 1.080100937422.0251878090539229.4596873126941backend/src/main/java/at/dropover/scheduling/interactor/AddSchedulingDate.java0.432328158: 0.009993481561302.7497099018626401.78597653480807backend/src/main/java/at/dropover/scheduling/interactor/AddSchedulingUser.java0.634157203: 0.2429629108328.4537360723184364.26941027761393backend/src/main/java/at/dropover/scheduling/interactor/DeleteSchedulingUser.java0.2480188058: 0.08847222539279.27691185220783389.14803943493337backend/src/main/java/at/dropover/scheduling/interactor/GetScheduling.java1.548744374: 1.489847161444.93138462432944163.47561614671554backend/src/main/java/at/dropover/scheduling/interactor/GetSchedulingDate.java0.6053482465: 0.2617741865324.78475883703385361.24010950293416backend/src/main/java/at/dropover/scheduling/interactor/GetSchedulings.java0.5323711982: 0.2609042236315.49073497774094361.3802052301552backend/src/main/java/at/dropover/scheduling/interactor/SetFinalDate.java0.4258874297: -0.5434840102301.92944812983245490.9160184609759backend/src/main/java/at/dropover/scheduling/interactor/VoteForSchedulingDate.java0.674871154: 0.3134542658333.63887908446947352.9177337851696backend/src/main/java/at/dropover/scheduling/interactor/VoteOption.java0.4439554489: -0.4679353747304.23050861248606478.74993555488567backend/src/main/java/at/dropover/scheduling/interactor/validation/SchedulingRequestValidator.java1.799243622: 1.940130119476.833825757361190.96365404939849backend/src/main/java/at/dropover/site/boundary/CreateSiteRequestModel.java-0.2293289675: -0.5188138052218.4840777018821486.94321659685926backend/src/main/java/at/dropover/site/boundary/CreateSiteResponseModel.java-0.3248749265: -0.5388318154206.31578036635597490.16684558818855backend/src/main/java/at/dropover/site/boundary/GetSiteRequestModel.java-0.3289323248: 0.1271419716205.79904863545588382.9208013777769backend/src/main/java/at/dropover/site/boundary/GetSiteResponseModel.java-0.3248749265: -0.5388318154206.31578036635597490.1668455881885backend/src/main/java/at/dropover/site/boundary/LocationData.java0.2361352588: -0.6443212789277.7634775418357507.15449268848363backend/src/main/java/at/dropover/site/boundary/SiteData.java-0.3582385226: -0.4154308732202.06674501597237470.2947978227291backend/src/main/java/at/dropover/site/delivery/rest/SiteResource.java-0.8463789404: 0.484215384139.89940891080795325.4189721495029backend/src/main/java/at/dropover/site/delivery/rest/SitesResource.java-0.5840227261: 0.3335610248173.31189916816717349.6798130083375backend/src/main/java/at/dropover/site/entity/Location.java0.136239536: 0.003876840798265.0412141320866402.77097855507907backend/src/main/java/at/dropover/site/entity/Site.java-0.7423924236: -0.3268336699153.14265717616303456.02742009550775backend/src/main/java/at/dropover/site/entity/exception/SiteNotPersistentException.java-0.7413536372: 0.6624390001153.27495226471515296.71847643174556backend/src/main/java/at/dropover/site/entity/gateway/SiteGateway.java-0.4339008398: 0.1559424724192.43073756160268378.28287140804036backend/src/main/java/at/dropover/site/entity/gateway/aws/DynamoDbSiteGateway.java0.1726015854: 0.04459896973269.672118816548396.2132321007118backend/src/main/java/at/dropover/site/entity/gateway/inmemory/InMemorySiteGateway.java-0.7480734085: 0.6125481814152.41915286227783304.7527160056858backend/src/main/java/at/dropover/site/entity/pojo/PojoLocation.java0.1347463363: 0.003824947595264.8510470244717402.7793352515777backend/src/main/java/at/dropover/site/entity/pojo/PojoSite.java-0.4277584866: 0.2077823048193.21299963850075369.934769629593backend/src/main/java/at/dropover/site/interactor/CreateSite.java-1.287225646: 1.47240273783.75518417924694166.28480408210044backend/src/main/java/at/dropover/site/interactor/GetSite.java-0.8864341626: 0.7746403826134.7981585949457278.6499658468678backend/src/main/java/at/dropover/site/interactor/GetSiteData.java-0.5153217037: 0.3085226466182.06134787720512353.7119041579973backend/src/main/java/at/dropover/site/interactor/namegeneration/AlphabeticBase26Encoder.java-0.2770643824: -0.5126731499212.4047130979209485.9543473603694backend/src/main/java/at/dropover/site/interactor/namegeneration/BaseEncoder.java-0.4255820445: 0.115887667193.49018137508386384.7331544642383backend/src/main/java/at/dropover/site/interactor/namegeneration/RandomSiteNameGenerator.java-0.8238204623: 0.3241057708142.7723537376648351.2024533962373backend/src/main/java/at/dropover/site/validation/SiteDependentRequestValidator.java0.1155470305: 0.26279953262.40591105553676361.0749918411291backend/src/main/java/at/dropover/todo/boundary/AddTodoListRequest.java0.1591656821: -0.6531578473267.96098348205004508.57750214956116backend/src/main/java/at/dropover/todo/boundary/AddTodoListResponse.java-0.1703067945: -0.4174948808226.00087232478268470.62717825249007backend/src/main/java/at/dropover/todo/boundary/AddTodoRequestModel.java-0.69109213: -0.3517806933159.67602847278485460.0447997995745backend/src/main/java/at/dropover/todo/boundary/ChangeTodoRequestModel.java-0.110336758: -0.5764848613233.63838251537317496.2303578617506backend/src/main/java/at/dropover/todo/boundary/DeleteTodoListRequestModel.java0.1395086769: 0.01367204777265.45755699489393401.19359334723845backend/src/main/java/at/dropover/todo/boundary/DeleteTodoListResponseModel.java0.2391120341: -0.632283729278.1425860613201505.21600856632097backend/src/main/java/at/dropover/todo/boundary/DeleteTodoResponseModel.java0.2391120341: -0.632283729278.1425860613201505.21600856632097backend/src/main/java/at/dropover/todo/boundary/GetAllTodoListsRequest.java-0.02031787168: -0.6011247588245.10277709881686500.19827910568176backend/src/main/java/at/dropover/todo/boundary/GetAllTodoListsResponse.java0.06858492646: -0.6139258202256.4250317846017502.25971638107615backend/src/main/java/at/dropover/todo/boundary/GetAllTodosRequest.java-0.1310398355: -0.4508106863231.0017330456198475.99223678415194backend/src/main/java/at/dropover/todo/boundary/GetAllTodosResponse.java0.1660815772: -0.6628250935268.8417603255391510.1342810164865backend/src/main/java/at/dropover/todo/boundary/GetTodoListRequestModel.java0.08100932385: 0.02222793178258.0073463405936399.81578429194724backend/src/main/java/at/dropover/todo/boundary/GetTodoListResponseModel.java0.1518510806: -0.6711099374267.0294292160281511.46844273997726backend/src/main/java/at/dropover/todo/boundary/GetTodoRequestModel.java-0.4295312359: -0.406154796192.9872303785338468.80101142304295backend/src/main/java/at/dropover/todo/boundary/GetTodosRequestModel.java0.152583621: -0.7034824775267.1227222157285516.6816011838017backend/src/main/java/at/dropover/todo/boundary/GetTodosResponseModel.java-0.3484740532: -0.4722589496203.31030328291186479.4461886462211backend/src/main/java/at/dropover/todo/boundary/TodoData.java-0.3392064423: -0.4923186213204.490583920098482.67652664574223backend/src/main/java/at/dropover/todo/boundary/TodoRequestModel.java-0.5016830304: -0.6279817348183.7983070812835504.52323076674537backend/src/main/java/at/dropover/todo/delivery/rest/TodoResource.java-1.108078459: 0.69523571106.57055243245819291.43701121486265backend/src/main/java/at/dropover/todo/delivery/rest/TodolistResource.java0.04475255395: 0.04262920839253.38984957472462396.5304354450632backend/src/main/java/at/dropover/todo/delivery/rest/TodolistsResource.java-0.05177161469: 0.09175062525241.09697192022483388.6200976090413backend/src/main/java/at/dropover/todo/delivery/rest/TodosResource.java-1.081483171: 0.6753792207109.95760694803812294.6346294555378backend/src/main/java/at/dropover/todo/entity/Todo.java-0.1813053549: -0.5129461598224.600145863648485.99831190961896backend/src/main/java/at/dropover/todo/entity/TodoList.java-0.3321536441: -0.35199861205.38879610542517460.07989231785314backend/src/main/java/at/dropover/todo/entity/gateway/TodoGateway.java-0.8485496095: 0.4499014057139.62296239665213330.9447728608434backend/src/main/java/at/dropover/todo/entity/gateway/TodoKey.java-0.186869293: -0.435567742223.8915480904351473.5375673918343backend/src/main/java/at/dropover/todo/entity/gateway/aws/DynamoDbTodoGateway.java0.124219605: 0.1731011136263.51041057216366375.51970501645394backend/src/main/java/at/dropover/todo/entity/gateway/inmemory/InMemoryTodoGateway.java-1.695213612: 0.951587441231.79569860045667250.1550424120444backend/src/main/java/at/dropover/todo/entity/gateway/validation/TodoValidation.java-0.287576411: 0.2191517403211.065949099163368.10387626788395backend/src/main/java/at/dropover/todo/entity/pojo/PojoTodo.java-0.2809087122: 0.1330096169211.91511679722186381.9758966905365backend/src/main/java/at/dropover/todo/entity/pojo/PojoTodoList.java-0.1361275612: 0.08305447997230.35378350898705390.02049383989095backend/src/main/java/at/dropover/todo/interactor/AddTodo.java-1.639916615: 1.25997168838.83807184774148200.4939428721985backend/src/main/java/at/dropover/todo/interactor/AddTodoList.java-0.5848233697: 0.6792382024173.20993284800159294.0131927962559backend/src/main/java/at/dropover/todo/interactor/ChangeTodo.java-1.851254235: 1.27475593711.923076923076914198.11313998849073backend/src/main/java/at/dropover/todo/interactor/DeleteTodo.java0.1307199206: 0.02419645137264.33826109996306399.4987809156627backend/src/main/java/at/dropover/todo/interactor/DeleteTodoList.java0.1307199206: 0.02419645137264.33826109996306399.4987809156627backend/src/main/java/at/dropover/todo/interactor/GetAllTodoLists.java-0.6976538439: 0.4354201966158.84035853829437333.27677514650134backend/src/main/java/at/dropover/todo/interactor/GetAllTodos.java-1.259874832: 0.624126578887.2384589872393302.8881721644492backend/src/main/java/at/dropover/todo/interactor/GetTodo.java-1.039991643: 0.6852684466115.24177866380637293.0421037767427backend/src/main/java/at/dropover/todo/interactor/GetTodoList.java-0.517308209: 0.3938988702181.8083556357503339.9632215078092backend/src/main/java/at/dropover/todo/interactor/exception/TodoListNotPersistedException.java0.1793236885: -0.4271562936270.5282151950912472.18301772343466backend/src/main/java/at/dropover/todo/interactor/exception/TodoNotFoundException.java-0.4472791324: -0.0533940182190.72693925951202411.993673496106backend/src/main/java/at/dropover/todo/interactor/validation/TodoRequestValidator.java-1.26290918: 0.694117781486.85201831776449291.6170384493819commentcreatorfilesframeworkmailschedulingsitetodo

To be able to better understand the result, we add the file names from the commit_matrix as index and column index to the dissimilarity_matrix.


In [16]:
import pandas as pd
dissimilarity_df = pd.DataFrame(
    dissimilarity_matrix,
    index=commit_matrix.index,
    columns=commit_matrix.index)
dissimilarity_df.iloc[:5,:2]


Out[16]:
file backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java
file
backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java 0.000000 1.414214
backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java 1.414214 0.000000
backend/src/main/java/at/dropover/comment/boundary/CommentData.java 1.414214 1.414214
backend/src/main/java/at/dropover/comment/boundary/GetCommentRequestModel.java 1.000000 1.000000
backend/src/main/java/at/dropover/comment/boundary/GetCommentResponseModel.java 1.000000 1.732051

Now, we see the result in a better representation: For each file pair, we get the distance of the commit vectors. This means that we have now a distance measure that says how dissimilar two files were changed in respect to each other.

Visualization

Heatmap

To get an overview of the result's data, we can plot the matrix with a little heatmap first.


In [17]:
%matplotlib inline
import seaborn as sns

sns.heatmap(
    dissimilarity_df,
    xticklabels=False,
    yticklabels=False
);


Because of the alphabetically ordered filenames and the "feature-first" architecture of the software under investigation, we get the first glimpse of how changes within modules are occurring together and which are not.

To get an even better view, we can first extract the module's names with an easy string operation and use this for the indexes.


In [19]:
modules = dissimilarity_df.copy()
modules.index = modules.index.str.split("/").str[6]
modules.index.name = 'module'
modules.columns = modules.index
modules.iloc[25:30,25:30]


Out[19]:
module comment comment comment creator creator
module
comment 0.000000 1.732051 2.449490 1.732051 2.236068
comment 1.732051 0.000000 1.732051 0.000000 1.414214
comment 2.449490 1.732051 0.000000 1.732051 2.236068
creator 1.732051 0.000000 1.732051 0.000000 1.414214
creator 2.236068 1.414214 2.236068 1.414214 0.000000

Then, we can create another heatmap that shows the name of the modules on both axes for further evaluation. We also just take a look at a subset of the data for representational reasons.


In [20]:
import matplotlib.pyplot as plt
plt.figure(figsize=[10,9])
sns.heatmap(modules.iloc[:180,:180]);


Discussion

  • Starting at the upper left, we see the "comment" module with a pretty dark area very clearly. This means, that files around this module changed together very often.
  • If we go to the middle left, we see dark areas between the "comment" module and the "framework" module as well as the "site" module further down. This shows a change dependency between the "comment" module and the other two (I'll explain later, why it is that way).
  • If we take a look in the middle of the heatmap, we see that the very dark area represents changes of the "mail" module. This module was pretty much changed without touching any other modules. This shows a nice separation of concerns.
  • For the "scheduling" module, we can also see that the changes occurred mostly cohesive within the module.
  • Another interesting aspect is the horizontal line within the "comment" region: These files were changed independently from all other files within the module. These files were the code for an additional data storage technology that was added in later versions of the software system. This pattern repeats for all other modules more or less strongly.

With this visualization, we can get a first impression of how good our software architecture fits the real software development activities. In this case, I would say that you can see most clearly that the source code of the modules changed mostly within the module boundaries. But we have to take a look at the changes that occur in other modules as well when changing a particular module. These could be signs of unwanted dependencies and may lead us to an architectural problem.

Multi-dimensional Scaling

We can create another kind of visualization to check

  • if the code within the modules is only changed altogether and
  • if not, what other modules were changed.

Here, we can help ourselves with a technique called "multi-dimensional scaling" or "MDS" for short. With MDS, we can break down an n-dimensional space to a lower-dimensional space representation. MDS tries to keep the distance proportions of the higher-dimensional space when breaking it down to a lower-dimensional space.

In our case, we can let MDS figure out a 2D representation of our dissimilarity matrix (which is, overall, just a plain multi-dimensional vector space) to see which files get change together. With this, we'll able to see which files are changes together regardless of the modules they belong to.

The machine learning library scikit-learn gives us easy access to the algorithm that we need for this task as well. We just need to say that we have a precomputed dissimilarity matrix when initializing the algorithm and then pass our dissimilarity_df DataFrame to the fit_transform method of the algorithm.


In [21]:
from sklearn.manifold import MDS

# uses a fixed seed for random_state for reproducibility
model = MDS(dissimilarity='precomputed', random_state=0)
dissimilarity_2d = model.fit_transform(dissimilarity_df)
dissimilarity_2d[:5]


Out[21]:
array([[ 0.65399614, -0.3203092 ],
       [ 1.21037153, -1.02471737],
       [ 0.82896037, -0.32062823],
       [ 0.93584872, -0.83291898],
       [ 0.44546397, -0.07640113]])

The result is a 2D matrix that we can plot with matplotlib to get a first glimpse of the distribution of the calculated distances.


In [22]:
plt.figure(figsize=(8,8))
x = dissimilarity_2d[:,0]
y = dissimilarity_2d[:,1]
plt.scatter(x, y);


With the plot above, we see that the 2D transformation somehow worked. But we can't see

  • which filenames are which data points
  • how the modules are grouped all together

So we need to enrich the data a little bit more and search for a better, interactive visualization technique.

Let's add the filenames to the matrix as well as nice column names. We, again, add the information about the module of a source code file to the DataFrame.


In [23]:
dissimilarity_2d_df = pd.DataFrame(
    dissimilarity_2d,
    index=commit_matrix.index,
    columns=["x", "y"])
dissimilarity_2d_df['module'] = dissimilarity_2d_df.index.str.split("/").str[6]
dissimilarity_2d_df.head()


Out[23]:
x y module
file
backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java 0.653996 -0.320309 comment
backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java 1.210372 -1.024717 comment
backend/src/main/java/at/dropover/comment/boundary/CommentData.java 0.828960 -0.320628 comment
backend/src/main/java/at/dropover/comment/boundary/GetCommentRequestModel.java 0.935849 -0.832919 comment
backend/src/main/java/at/dropover/comment/boundary/GetCommentResponseModel.java 0.445464 -0.076401 comment

OK, here comes the ugly part: We have to transform all the data to the format our interactive visualization library pygal needs for its XY chart. We need to

  • group the data my modules
  • add every distance information
    • for each file as well as
    • the filename itself

in a specific dictionary-like data structure.

But there is nothing that can hinder us in Python and pandas. So let's do this!

  1. We create a separate DataFrame named plot_data with the module names as index
  2. We join the coordinates x and y into a tuple data structure
  3. We use the filenames from dissimilarity_2d_df's index as labels
  4. We convert both data items to a dictionary
  5. We append each entry for a module to only on module entry

This gives us a new DataFrame with modules as index and per module a list of dictionary-like entries with

  • the filenames as labels and
  • the coordinates as values.

In [24]:
plot_data = pd.DataFrame(index=dissimilarity_2d_df['module'])
plot_data['value'] = tuple(zip(dissimilarity_2d_df['x'], dissimilarity_2d_df['y']))
plot_data['label'] = dissimilarity_2d_df.index
plot_data['data'] = plot_data[['label', 'value']].to_dict('records')
plot_dict = plot_data.groupby(plot_data.index).data.apply(list)
plot_dict


Out[24]:
module
comment       [{'label': 'backend/src/main/java/at/dropover/...
creator       [{'label': 'backend/src/main/java/at/dropover/...
files         [{'label': 'backend/src/main/java/at/dropover/...
framework     [{'label': 'backend/src/main/java/at/dropover/...
mail          [{'label': 'backend/src/main/java/at/dropover/...
scheduling    [{'label': 'backend/src/main/java/at/dropover/...
site          [{'label': 'backend/src/main/java/at/dropover/...
todo          [{'label': 'backend/src/main/java/at/dropover/...
Name: data, dtype: object

With this nice little data structure, we can fill pygal's XY chart and create an interactive chart.


In [25]:
import pygal

xy_chart = pygal.XY(stroke=False)
[xy_chart.add(entry[0], entry[1]) for entry in plot_dict.iteritems()]   
# uncomment to create the interactive chart
xy_chart.render_in_browser()
xy_chart


file://C:/Users/Markus/AppData/Local/Temp/tmpeddivuz8.html
Out[25]:
Pygal-5-5-4-4-3-3-2-2-1-10011223344-4-4-3-3-2-2-1-100112233backend/src/main/java/at/dropover/comment/boundary/AddCommentRequestModel.java0.6539961383: -0.320309203407.42606369531376273.40199426230146backend/src/main/java/at/dropover/comment/boundary/ChangeCommentRequestModel.java1.210371535: -1.024717372447.62248017694736309.09174045869304backend/src/main/java/at/dropover/comment/boundary/CommentData.java0.8289603651: -0.320628234420.0666926274616273.41815837890766backend/src/main/java/at/dropover/comment/boundary/GetCommentRequestModel.java0.9358487198: -0.8329189823427.7890485279062299.37402827560084backend/src/main/java/at/dropover/comment/boundary/GetCommentResponseModel.java0.4454639679: -0.07640112864392.36025376434026261.0440778498892backend/src/main/java/at/dropover/comment/boundary/GetCommentsRequestModel.java0.6539961383: -0.320309203407.42606369529364273.40199426233backend/src/main/java/at/dropover/comment/boundary/GetCommentsResponseModel.java0.4454639679: -0.07640112864392.36025376434026261.0440778498892backend/src/main/java/at/dropover/comment/boundary/GetRangedCommentsRequestModel.java1.210371535: -1.024717372447.6224801769488309.09174045869247backend/src/main/java/at/dropover/comment/boundary/TimeDiffRequestModel.java0.9046749761: 0.1020301775425.53684112219895252.00362614726026backend/src/main/java/at/dropover/comment/boundary/TimeDiffResponseModel.java0.8289603651: -0.320628234420.06669262746163273.41815837890766backend/src/main/java/at/dropover/comment/delivery/rest/CommentResource.java2.808161479: -0.3965420796563.0579046518375277.26443103768605backend/src/main/java/at/dropover/comment/delivery/rest/CommentsResource.java-0.06530841388: -3.575582962355.4585152600111438.3346276168262backend/src/main/java/at/dropover/comment/entity/Comment.java0.8289603651: -0.320628234420.06669262746163273.41815837890766backend/src/main/java/at/dropover/comment/entity/gateway/CommentGateway.java0.3569264922: -0.8706263964385.96369261500024301.2845229281828backend/src/main/java/at/dropover/comment/entity/gateway/aws/CommentSorter.java-0.6348994209: -0.5173498597314.30731142557534283.3853126529308backend/src/main/java/at/dropover/comment/entity/gateway/aws/DynamoDbCommentGateway.java2.362039888: 1.249338567530.8269875671245193.87377043144522backend/src/main/java/at/dropover/comment/entity/gateway/exception/NotSoManyCommentsAvailable.java0.3283110684: 0.525351946383.89631597893725230.55548408168562backend/src/main/java/at/dropover/comment/entity/gateway/inmemory/InMemoryCommentStorage.java1.254090295: -0.6216739211450.7810266071825288.67102545240607backend/src/main/java/at/dropover/comment/entity/pojo/PojoComment.java0.3569264922: -0.8706263964385.96369261500024301.2845229281828backend/src/main/java/at/dropover/comment/interactor/AddComment.java-1.154126668: -3.077650882276.7947348059249413.1062581360103backend/src/main/java/at/dropover/comment/interactor/ChangeComment.java1.367780584: -2.051555714458.99480134120154361.1178262307867backend/src/main/java/at/dropover/comment/interactor/CommentResponseBuilder.java1.067170504: -2.174751493437.27664475911365367.35969888304714backend/src/main/java/at/dropover/comment/interactor/CreateTimeDiff.java0.6884530002: -1.501180288409.9154663193557333.2323471544999backend/src/main/java/at/dropover/comment/interactor/GetComments.java0.1286102483: -0.7640955387369.4685440298176295.88699995266916backend/src/main/java/at/dropover/comment/interactor/GetRangedComments.java0.718791094: -1.020935439412.10730057877635308.9001239711481backend/src/main/java/at/dropover/comment/interactor/exception/CommentNotFoundException.java1.641274039: -0.3668250321478.75386491940617275.75877859112416backend/src/main/java/at/dropover/comment/interactor/exception/PostNotInPastException.java0.4454639679: -0.07640112864392.36025376434026261.0440778498892backend/src/main/java/at/dropover/comment/interactor/validation/CommentRequestValidator.java0.1594391984: -1.217612023371.69584114764865318.86499613396927backend/src/main/java/at/dropover/creator/boundary/CreatorData.java0.4454639679: -0.07640112864392.36025376434026261.0440778498892backend/src/main/java/at/dropover/creator/entity/Creator.java1.30662013: 0.292548094454.5761461158019242.3507907771243backend/src/main/java/at/dropover/creator/entity/exception/CreatorNotPersistentException.java-0.2665762338: 0.9370306293340.9175323749281209.69725390505351backend/src/main/java/at/dropover/creator/entity/gateway/CreatorGateway.java-3.091883526: -0.8125974684136.79774318629504298.344412628275backend/src/main/java/at/dropover/creator/entity/gateway/CreatorKey.java-2.621362586: -0.2429199223170.79143841178126269.4809667832241backend/src/main/java/at/dropover/creator/entity/gateway/aws/DynamoDbCreatorGateway.java-2.458151223: -0.952538576182.58295900674557305.43470890024264backend/src/main/java/at/dropover/creator/entity/gateway/inmemory/InMemoryCreatorGateway.java-3.400687887: -0.9469956508114.4875748938314305.1538694605704backend/src/main/java/at/dropover/creator/entity/pojo/PojoCreator.java-0.3909466154: -1.977987755331.9321536416637357.3904109190009backend/src/main/java/at/dropover/creator/interactor/FormatCreatorNicely.java-0.2870068727: -1.121227038339.44148135841664313.9815268698997backend/src/main/java/at/dropover/files/boundary/DownloadFileRequestModel.java0.9345084203: 0.9481944411427.6922159977486209.13162501904753backend/src/main/java/at/dropover/files/boundary/DownloadFileResponseModel.java1.341809035: 1.080215729457.118436552712202.44259662594084backend/src/main/java/at/dropover/files/boundary/ListFilesResponseModel.java0.9345084203: 0.9481944411427.6922159977486209.13162501904753backend/src/main/java/at/dropover/files/boundary/ReportAbuseRequestModel.java-0.6016342205: 0.8513988764316.7106201591331214.035896845685backend/src/main/java/at/dropover/files/boundary/ReportAbuseResponeModel.java0.2427049009: 0.5149630152377.7115328536644231.08185262691984backend/src/main/java/at/dropover/files/boundary/UploadFileRequestModel.java1.551251319: 1.279429531472.24999944803835192.34917300610186backend/src/main/java/at/dropover/files/boundary/UploadFileResponseModel.java1.233282972: 1.156740712449.27776127693204198.5653598990179backend/src/main/java/at/dropover/files/delivery/rest/FilesResource.java3.594191364: 1.21223069619.8461538461538195.75388877145315backend/src/main/java/at/dropover/files/entity/UploaderInformation.java-0.9445812813: 0.5580213223291.9337465211823228.90024809577773backend/src/main/java/at/dropover/files/entity/gateway/StreamingFileGateway.java-1.005734999: 1.031164573287.5155778992623204.92783654703942backend/src/main/java/at/dropover/files/entity/gateway/inmemory/FileWithMetadata.java-0.4519532073: 0.9364080616327.5246144278412209.72879710145122backend/src/main/java/at/dropover/files/entity/gateway/inmemory/InMemoryFileGateway.java3.452402421: 0.8428357955609.6023374153004214.46975635856296backend/src/main/java/at/dropover/files/entity/gateway/s3/S3FileGateway.java3.09817618: 1.423431139584.0105775910127185.0531462774552backend/src/main/java/at/dropover/files/entity/pojo/PojoUploaderInfo.java-1.208863877: 0.7905211431272.8401392717932217.1203455320741backend/src/main/java/at/dropover/files/exception/FileNotPersistentException.java-0.3682811225: -0.1338547704333.56966600579807263.9550405316076backend/src/main/java/at/dropover/files/exception/FileTransferException.java-0.3682811225: -0.1338547704333.56966600579807263.9550405316076backend/src/main/java/at/dropover/files/exception/InvalidFileException.java-0.3682811225: -0.1338547704333.56966600579807263.9550405316076backend/src/main/java/at/dropover/files/interactor/DownloadFile.java2.188027435: 1.576531909518.2551214338439177.29609874660832backend/src/main/java/at/dropover/files/interactor/ListFiles.java1.979696721: 1.574636803503.2038661066233177.39211675237368backend/src/main/java/at/dropover/files/interactor/ReportAbuse.java-1.453334628: 0.1491908253255.17787712194604249.6141712465033backend/src/main/java/at/dropover/files/interactor/UploadFile.java3.284865026: 2.055722403597.498274334604153.01729581645282backend/src/main/java/at/dropover/files/validation/FileTransferValidator.java-1.369269103: -0.3106460839261.2513535736992272.91239989701546backend/src/main/java/at/dropover/framework/autoupdate/Autoupdate.java-0.55826127: 0.1785451809319.8441828494744248.12689505395616backend/src/main/java/at/dropover/framework/autoupdate/DynamoDBCurrentVersionDeterminor.java-0.55826127: 0.1785451809319.8441828494744248.12689505395616backend/src/main/java/at/dropover/framework/autoupdate/IllegalUpdateScriptsException.java-0.628315949: -0.1014514965314.7829470799378262.31328696909304backend/src/main/java/at/dropover/framework/autoupdate/UpdateScript.java-0.06830538314: 0.4991945569355.2419934205447231.88078185310525backend/src/main/java/at/dropover/framework/autoupdate/scripts/UpdateToV1.java-0.55826127: 0.1785451809319.8441828494744248.12689505395616backend/src/main/java/at/dropover/framework/boundary/DropoverModel.java0.6251005721: -1.135166487405.338447634091314.68778699614455backend/src/main/java/at/dropover/framework/boundary/RequestModel.java0.6251005721: -1.135166487405.338447634091314.68778699614455backend/src/main/java/at/dropover/framework/boundary/ResponseModel.java0.6391204315: -0.5927267689406.3513394958076287.20438074028175backend/src/main/java/at/dropover/framework/boundary/SiteDependentRequestModel.java-0.171494333: -0.5664369526347.7869081814643285.87237337411864backend/src/main/java/at/dropover/framework/boundary/SynchronousDeliveryInteractorBoundary.java0.3569264922: -0.8706263964385.96369261500024301.2845229281828backend/src/main/java/at/dropover/framework/configuration/ConfigurationFile.java-3.238525757: -1.439582802126.203291578313330.11143124015194backend/src/main/java/at/dropover/framework/configuration/GatewayFactory.java-2.877081237: -2.152386881152.3165499274479366.226567054821backend/src/main/java/at/dropover/framework/configuration/InterceptorFactory.java-2.402908408: 0.127524704186.5740829592612250.7119131570837backend/src/main/java/at/dropover/framework/configuration/MisconfigurationException.java-1.777086649: 0.5563861323231.7877862395214228.98309710055133backend/src/main/java/at/dropover/framework/delivery/LocaleDeterminator.java-0.8233223137: 0.5976107402300.6943351447513226.89439930034877backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/GenericDropoverMessageBody.java0.1579998906: -0.4132617659371.5918555732141278.1115554560041backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/InteractorException2Status.java1.834926575: -1.189879744492.74466691275296317.4599045278881backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/JsonMessageBody.java0.1579998906: -0.4132617659371.5918555732141278.1115554560041backend/src/main/java/at/dropover/framework/delivery/rest/jerseyconfiguration/XMLMessageBody.java0.05708625339: -0.6817310598364.3011546965016291.71389765412675backend/src/main/java/at/dropover/framework/dependencyinjection/GuiceConfig.java-1.206391176: -5.377190363273.0187843674662529.6153846153846backend/src/main/java/at/dropover/framework/entity/aws/AWS.java-4.075322591: 0.926134503365.7472860240026210.24932014834803backend/src/main/java/at/dropover/framework/entity/aws/BetweenWrapper.java-0.05933182137: -1.225041549355.89030574461316319.24142266264073backend/src/main/java/at/dropover/framework/entity/aws/ConditionWrapper.java1.509385999: 0.3914804295469.2253584127102237.33825670903508backend/src/main/java/at/dropover/framework/entity/aws/KeyValue.java1.954721634: 0.1836853789501.3994926288953247.86646030825864backend/src/main/java/at/dropover/framework/entity/gateway/CreatedAtComparator.java0.8675797064: -0.07239376229422.8568216249747260.8410394775457backend/src/main/java/at/dropover/framework/entity/gateway/exception/InvalidGatewayConfigurationException.java-0.06830538314: 0.4991945569355.24199342054476231.88078185310525backend/src/main/java/at/dropover/framework/entity/gateway/exception/InvalidPersistentDataException.java0.4454639679: -0.07640112864392.36025376434026261.0440778498892backend/src/main/java/at/dropover/framework/entity/gateway/exception/PersistenceMechanismNotAvailableException.java0.794631028: 0.0103059033417.58650328043984256.65095451564974backend/src/main/java/at/dropover/framework/exception/InvalidRequestException.java-0.3682811225: -0.1338547704333.5696660057982263.9550405316076backend/src/main/java/at/dropover/framework/exception/NotPersistentException.java-0.3682811225: -0.1338547704333.5696660057982263.9550405316076backend/src/main/java/at/dropover/framework/internationalization/Translation.java0.4548980468: -1.623744591393.0418370398541339.4422252715367backend/src/main/java/at/dropover/framework/util/DoubleMap.java-0.3682811225: -0.1338547704333.5696660057982263.9550405316076backend/src/main/java/at/dropover/mail/boundary/SendMailToCreatorRequestModel.java-1.975450013: 0.7566767291217.4566413846362218.83511631187542backend/src/main/java/at/dropover/mail/boundary/SendMailToCreatorResponseModel.java-1.514725695: 0.4021382748250.74256071794994236.79826326340446backend/src/main/java/at/dropover/mail/entity/channel/MailChannel.java-1.835920513: 0.3196400909227.53721995614475240.97813989644857backend/src/main/java/at/dropover/mail/entity/channel/common/MailChannelValidator.java-2.529732007: 0.6952671004177.4114668511718221.94651416225452backend/src/main/java/at/dropover/mail/entity/channel/email/EmailChannel.java-2.145919039: 0.04739782123205.14077694166744254.7716447693191backend/src/main/java/at/dropover/mail/entity/channel/inmemory/InMemoryMailChannel.java-2.108412812: 0.4140846119207.85048686865437236.19298672368478backend/src/main/java/at/dropover/mail/interactor/SendMailToCreator.java0.9289987711: 3.220933895427.294160734091693.98035639429537backend/src/main/java/at/dropover/mail/interactor/validation/SendMailValidation.java-1.868873863: -0.17034954225.1564414426992265.80409499188636backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingDateRequestModel.java-0.2635742646: 1.528769303341.13441544552416179.71605265980236backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingDateResponseModel.java0.1213356472: 1.91509199368.94297640416966160.14251662588106backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingRequestModel.java1.037976197: 2.324620649435.1674456013493139.39322021220448backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingResponseModel.java-1.818250496: 1.525108214228.81382450277232179.901546414738backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingUserRequestModel.java-0.001878007279: 1.579936185360.04116765354934177.12361674245255backend/src/main/java/at/dropover/scheduling/boundary/AddSchedulingUserResponseModel.java-0.001878007279: 1.579936185360.04116765354934177.12361674245255backend/src/main/java/at/dropover/scheduling/boundary/DeleteSchedulingUserRequestModel.java-1.04954079: -0.310952026284.3507438543919272.9279008495221backend/src/main/java/at/dropover/scheduling/boundary/DeleteSchedulingUserResponseModel.java0.09343159107: 0.4643919895366.9269939060401233.64409871320748backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingDateRequestModel.java-0.1380892228: 1.538303664350.2003249665667179.2329819649446backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingDateResponseModel.java0.185540511: 1.565963288373.58158095392946177.8315715589133backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingRequestModel.java0.2778377161: 0.7128238652380.2497710288945221.05697808284782backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingResponseModel.java2.036755618: 2.917034786507.32619640422257109.37779573015291backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingsRequestModel.java0.4144509375: 1.085960339390.1196574108931202.15153854305584backend/src/main/java/at/dropover/scheduling/boundary/GetSchedulingsResponseModel.java0.3154116161: 1.139447343382.96437010320057199.44155064516974backend/src/main/java/at/dropover/scheduling/boundary/SetFinalDateRequestModel.java0.09951762177: 0.6919062413367.3666909632802222.11679641090018backend/src/main/java/at/dropover/scheduling/boundary/VoteForSchedulingDateRequestModel.java-0.7961072286: 1.996157817302.66054159626117156.03521223211692backend/src/main/java/at/dropover/scheduling/boundary/VoteForSchedulingDateResponseModel.java-0.2114842443: 1.171352176344.89775970057275197.82505126919938backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingDateResource.java-0.5720948014: 2.617827452318.84475261756944124.53752030138264backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingDatesResource.java-1.407154785: 2.042497417258.5142292063175153.6873567882006backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingResource.java-2.725781318: 2.503385195163.24750518154457130.33588449216091backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingUserResource.java-1.071498712: 0.1494271248282.7643512858281249.60219882705468backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingUsersResource.java-1.358600897: 1.670316366262.0220987470125172.54438858340507backend/src/main/java/at/dropover/scheduling/delivery/rest/SchedulingsResource.java-3.3432504: 0.6345377094118.6372572455193225.02344689627785backend/src/main/java/at/dropover/scheduling/entity/Scheduling.java0.1873268677: 3.090324977373.71063975207863100.59782524570431backend/src/main/java/at/dropover/scheduling/entity/SchedulingDate.java-0.8544730461: 2.505924009298.4437902392756130.207252235172backend/src/main/java/at/dropover/scheduling/entity/SchedulingKey.java-1.049051879: 0.3733915649284.3860661745811238.25475230902697backend/src/main/java/at/dropover/scheduling/entity/SchedulingUser.java-0.001878007279: 1.579936185360.0411676535493177.12361674245255backend/src/main/java/at/dropover/scheduling/entity/exception/SchedulingNotPersistentException.java1.18077393: 1.527098769445.48414400054065179.8006923944934backend/src/main/java/at/dropover/scheduling/entity/gateway/DateKey.java0.8497880831: 1.439761217421.571431395429184.2257618257716backend/src/main/java/at/dropover/scheduling/entity/gateway/LoadSchedulingDate.java0.09951762177: 0.6919062413367.3666909632802222.11679641090018backend/src/main/java/at/dropover/scheduling/entity/gateway/SchedulingGateway.java-2.34417021: 3.932054071190.817737675349957.95053772587556backend/src/main/java/at/dropover/scheduling/entity/gateway/aws/DynamoDbSchedulingGateway.java-4.817131786: -0.0735537292712.153846153846183260.8998106969933backend/src/main/java/at/dropover/scheduling/entity/gateway/inmemory/InMemorySchedulingGateway.java0.4376165061: 4.870862211391.793298716256210.384615384615358backend/src/main/java/at/dropover/scheduling/entity/pojo/PojoScheduling.java-1.280216846: 3.769537205267.6851060619403666.1846638391437backend/src/main/java/at/dropover/scheduling/entity/pojo/PojoSchedulingDate.java-0.6744670759: 2.343028347311.4486696663737138.4605705155754backend/src/main/java/at/dropover/scheduling/entity/pojo/PojoSchedulingUser.java-0.001878007279: 1.579936185360.04116765354934177.12361674245255backend/src/main/java/at/dropover/scheduling/exception/DuplicateKeyException.java0.01765303632: 0.2416311918361.45222566945813244.93056114095793backend/src/main/java/at/dropover/scheduling/exception/DuplicateSchedulingPositionException.java0.01765303632: 0.2416311918361.45222566945813244.93056114095793backend/src/main/java/at/dropover/scheduling/interactor/AddScheduling.java1.379077025: 3.112082801459.810934628540699.49543709882681backend/src/main/java/at/dropover/scheduling/interactor/AddSchedulingDate.java0.2071894576: 2.458452804375.14565096932847132.61244188184128backend/src/main/java/at/dropover/scheduling/interactor/AddSchedulingUser.java-1.012504594: 1.925444673287.0264954291309159.61798463669584backend/src/main/java/at/dropover/scheduling/interactor/DeleteSchedulingUser.java-1.04954079: -0.310952026284.3507438543889272.9279008495166backend/src/main/java/at/dropover/scheduling/interactor/GetScheduling.java-2.993177837: 2.799087505143.92892658861754115.35374651474774backend/src/main/java/at/dropover/scheduling/interactor/GetSchedulingDate.java-1.595746887: 1.853533792244.88902807808148163.2614419347284backend/src/main/java/at/dropover/scheduling/interactor/GetSchedulings.java0.7438562644: 1.782075204413.9181822859588166.8819832355402backend/src/main/java/at/dropover/scheduling/interactor/SetFinalDate.java0.09951762177: 0.6919062413367.3666909632802222.11679641090018backend/src/main/java/at/dropover/scheduling/interactor/VoteForSchedulingDate.java-1.731351822: 1.756619572235.0919872948538168.1717256294002backend/src/main/java/at/dropover/scheduling/interactor/VoteOption.java-0.72435914: 1.326614787307.844121007888189.95847131585947backend/src/main/java/at/dropover/scheduling/interactor/validation/SchedulingRequestValidator.java-0.1110591805: 4.497786051352.153162650028829.28699904390868backend/src/main/java/at/dropover/site/boundary/CreateSiteRequestModel.java0.4454639679: -0.07640112864392.36025376434026261.0440778498892backend/src/main/java/at/dropover/site/boundary/CreateSiteResponseModel.java1.31154396: -0.231127475454.9318777386428268.8834872639906backend/src/main/java/at/dropover/site/boundary/GetSiteRequestModel.java0.1579998906: -0.4132617659371.5918555732141278.11155545600417backend/src/main/java/at/dropover/site/boundary/GetSiteResponseModel.java1.28817141: -0.3109570802453.2432826290767272.9281569235974backend/src/main/java/at/dropover/site/boundary/LocationData.java0.5882808119: 0.9905400305402.67833285598545206.98613124957848backend/src/main/java/at/dropover/site/boundary/SiteData.java1.808832352: -0.08788217672490.859439290369261.6257799227907backend/src/main/java/at/dropover/site/delivery/rest/SiteResource.java1.536096153: -2.536434323471.1550851357043385.6848248099516backend/src/main/java/at/dropover/site/delivery/rest/SitesResource.java-1.56768841: -2.739551633246.91616699287354395.976024673923backend/src/main/java/at/dropover/site/entity/Location.java-1.523660814: 1.036028106250.09702582934483204.68141938470256backend/src/main/java/at/dropover/site/entity/Site.java1.442861736: -0.7921641961464.41918442585336297.30913459545764backend/src/main/java/at/dropover/site/entity/exception/SiteNotPersistentException.java1.396080833: -1.366337633461.03940761642247326.40037055515086backend/src/main/java/at/dropover/site/entity/gateway/SiteGateway.java-0.5767696707: -1.835041135318.5070076433823350.1478365223494backend/src/main/java/at/dropover/site/entity/gateway/aws/DynamoDbSiteGateway.java2.368232781: 0.8572938895531.2744050907286213.73721842100753backend/src/main/java/at/dropover/site/entity/gateway/inmemory/InMemorySiteGateway.java-2.199009086: -2.648645615201.3051838316205391.3701542939851backend/src/main/java/at/dropover/site/entity/pojo/PojoLocation.java0.6621918263: 1.448915766408.0181770269751183.761934825913backend/src/main/java/at/dropover/site/entity/pojo/PojoSite.java1.115283276: -0.7758393003440.75264505089035296.48201274337885backend/src/main/java/at/dropover/site/interactor/CreateSite.java-0.7627961606: -3.726183506305.06716412731674445.9649979957809backend/src/main/java/at/dropover/site/interactor/GetSite.java2.484472021: -1.025038627539.6723337750161309.10801725233785backend/src/main/java/at/dropover/site/interactor/GetSiteData.java0.2619181528: -2.023534081379.09963139195855359.69807413698084backend/src/main/java/at/dropover/site/interactor/namegeneration/AlphabeticBase26Encoder.java0.794631028: 0.0103059033417.5865032804398256.65095451564974backend/src/main/java/at/dropover/site/interactor/namegeneration/BaseEncoder.java0.4258869489: -1.158298767390.94587417102645315.85981370486354backend/src/main/java/at/dropover/site/interactor/namegeneration/RandomSiteNameGenerator.java0.8430007089: -1.396461358421.08106442063973327.92662783625747backend/src/main/java/at/dropover/site/validation/SiteDependentRequestValidator.java-0.7252253942: -0.3896994808307.7815368001752276.91774196411916backend/src/main/java/at/dropover/todo/boundary/AddTodoListRequest.java0.9048703624: 0.5897295848425.5509571862445227.29370817938758backend/src/main/java/at/dropover/todo/boundary/AddTodoListResponse.java1.451690616: 0.5553122551465.05704392983876229.0375064736524backend/src/main/java/at/dropover/todo/boundary/AddTodoRequestModel.java0.3951778523: -2.45814615388.7272360979586381.71825383154595backend/src/main/java/at/dropover/todo/boundary/ChangeTodoRequestModel.java-0.884360034: -1.480132164296.28454699865745332.16591688360893backend/src/main/java/at/dropover/todo/boundary/DeleteTodoListRequestModel.java-0.6501007326: 0.02546680686313.2090632586552255.88280782995434backend/src/main/java/at/dropover/todo/boundary/DeleteTodoListResponseModel.java-0.1976605791: 0.439043856345.8964771286794234.9283945081146backend/src/main/java/at/dropover/todo/boundary/DeleteTodoResponseModel.java-0.1976605791: 0.439043856345.8964771286794234.92839450811454backend/src/main/java/at/dropover/todo/boundary/GetAllTodoListsRequest.java-0.6108115649: -1.084132952316.04758516190486312.10210726123876backend/src/main/java/at/dropover/todo/boundary/GetAllTodoListsResponse.java-1.003286473: -0.9559609357287.6924764050205305.6081071546161backend/src/main/java/at/dropover/todo/boundary/GetAllTodosRequest.java0.9458723867: 0.4171249088428.51322772523895236.03894617290058backend/src/main/java/at/dropover/todo/boundary/GetAllTodosResponse.java0.8144588975: 0.5925895539419.0190060545582227.14880416516831backend/src/main/java/at/dropover/todo/boundary/GetTodoListRequestModel.java-1.357647384: -0.5909595173262.0909870918414287.11484066257697backend/src/main/java/at/dropover/todo/boundary/GetTodoListResponseModel.java-0.7963421902: -0.9333270257302.6435663423312304.46133098213backend/src/main/java/at/dropover/todo/boundary/GetTodoRequestModel.java0.004110388702: -1.71584517360.4738109021737344.1086195821578backend/src/main/java/at/dropover/todo/boundary/GetTodosRequestModel.java0.7064440207: 0.7726494491411.21526239316086218.02583790415702backend/src/main/java/at/dropover/todo/boundary/GetTodosResponseModel.java0.9343026396: -0.1303735669427.677348973561263.77866087860974backend/src/main/java/at/dropover/todo/boundary/TodoData.java1.431793054: 0.02101753837463.61950603838034256.1082357425075backend/src/main/java/at/dropover/todo/boundary/TodoRequestModel.java1.491381439: -1.61533997467.9245842022725339.0163943152603backend/src/main/java/at/dropover/todo/delivery/rest/TodoResource.java0.7362276497: -3.466435252413.36703826858866432.8045184724359backend/src/main/java/at/dropover/todo/delivery/rest/TodolistResource.java-1.271819252: -0.8207850846268.29180651594885298.75924873796066backend/src/main/java/at/dropover/todo/delivery/rest/TodolistsResource.java-1.844199024: -1.101732304226.93912292520147312.9938010675339backend/src/main/java/at/dropover/todo/delivery/rest/TodosResource.java0.8118861374: -2.77014465418.83313202769324397.5260592543167backend/src/main/java/at/dropover/todo/entity/Todo.java2.227094204: 0.02303639209521.0775756966937256.00594792110996backend/src/main/java/at/dropover/todo/entity/TodoList.java-0.3561767316: -1.305705177334.44417113448856323.3283491496526backend/src/main/java/at/dropover/todo/entity/gateway/TodoGateway.java2.329268701: -1.599194248528.4593697946017338.19835052456637backend/src/main/java/at/dropover/todo/entity/gateway/TodoKey.java-1.603978306: -1.256009638244.29433328173863320.8104607232602backend/src/main/java/at/dropover/todo/entity/gateway/aws/DynamoDbTodoGateway.java-2.360891068: -1.598979292189.60970695232183338.18745951831676backend/src/main/java/at/dropover/todo/entity/gateway/inmemory/InMemoryTodoGateway.java3.332810683: -2.140274483600.9622010447052365.6128768448998backend/src/main/java/at/dropover/todo/entity/gateway/validation/TodoValidation.java-1.687577256: -1.207277333238.254565434216318.3413757665053backend/src/main/java/at/dropover/todo/entity/pojo/PojoTodo.java-1.010040719: -1.790523831287.2045028821693347.8923100243686backend/src/main/java/at/dropover/todo/entity/pojo/PojoTodoList.java-1.078266206: -1.376146263282.27542062687496326.89733737547897backend/src/main/java/at/dropover/todo/interactor/AddTodo.java2.146534537: -2.460360581515.2573867367638381.83045079824205backend/src/main/java/at/dropover/todo/interactor/AddTodoList.java-0.9617043941: -2.428794811290.69665412420704380.2311304717782backend/src/main/java/at/dropover/todo/interactor/ChangeTodo.java2.645861305: -3.051107848551.3322147258906411.7614211850197backend/src/main/java/at/dropover/todo/interactor/DeleteTodo.java-1.048293873: -0.09430791348284.4408297772272261.95134814324166backend/src/main/java/at/dropover/todo/interactor/DeleteTodoList.java-1.048293873: -0.09430791348284.4408297772272261.95134814324166backend/src/main/java/at/dropover/todo/interactor/GetAllTodoLists.java-0.1991300751: -2.349789421345.79031054498824376.22822074519524backend/src/main/java/at/dropover/todo/interactor/GetAllTodos.java2.068758627: -1.861256647509.63831570302943351.4760791775748backend/src/main/java/at/dropover/todo/interactor/GetTodo.java2.9634512: -1.183174024574.2771108716811317.12015059577067backend/src/main/java/at/dropover/todo/interactor/GetTodoList.java-0.5817186657: -2.047042212318.14945792781816360.8891438643411backend/src/main/java/at/dropover/todo/interactor/exception/TodoListNotPersistedException.java-0.3671733809: 0.6005799672333.64969694260685226.74395959543574backend/src/main/java/at/dropover/todo/interactor/exception/TodoNotFoundException.java2.042500398: -0.445727286507.7412391632802279.7564628029476backend/src/main/java/at/dropover/todo/interactor/validation/TodoRequestValidator.java1.393064004: -2.919600995460.8214509397975405.0984572517972commentcreatorfilesframeworkmailschedulingsitetodo

This view is a pretty cool way for checking the real change behavior of your software including an architectural perspective.

Example

Below, you see the complete data for a data point if you hover over that point:

You can see the following here:

  • In the upper left, you find the name of the module in the gray color
  • You find the complete name of the source code file in the middle
  • You can see the coordinates that MDS assigned to this data point in the color of the selected module

Let's dive even deeper into the chart to get some insights that we can gain from our result.

Discussion

Module "mail"

As already seen in the heatmap, we can see that all files of the "mail" module are very close together. This means that the files changed together very often.

In the XY chart, we can see this clearly when we hover over the "mail" entry in the legend on the upper left. The corresponding data points will be magnified a little bit.

Module "scheduling"

Another interesting result can be found if we take a look at the distribution of the files of the module "scheduling". Especially the data points in the lower region of the chart indicate clearly that these files were changed almost exclusive together.

In the XY chart, we can take a look at the relevant data points by selecting just the "scheduling" data points by deselecting all the other entries in the legend.

Modules "comment", "framework" and "site"

The last thing I want to show you in our example is the common change pattern for the files of the modules "comment", "framework" and "site". The files of these modules changed together very often, leading to a very mixed colored region in the upper middle. In case of our system under investigation, this is perfectly explainable: These three modules were developed at the beginning of the project. Due to many redesigns and refactorings, those files had to be changed all together. For these modules, it would make sense to only look at the recent development activities to find out if the code within these modules is still co-changing.

In the XY chart, just select the modules "comment", "framework" and "site" to see the details.

Summary

We've seen how you can check the modularization of your software system by also taking a look at the development activities that is stored in the version control system. This gives you plenty of hints if you've chosen a software architecture that also fits the commit behavior of your development teams.

But there is more that we could add here: You cannot only check for modularization. You could also e. g. take a look at the commits of your teams, spotting parts that are getting changed from too many teams. You could also see if your actions taken had any effect by checking only the recent history of the commits. You can also redefine what co-changing means e. g. you define it as files that were changed on the same day, which would kind of balance out different commit styles of different developers.

But for now, we are leaving it here. You can experiment with further options on your own. You can find the complete Jupyter notebook on GitHub.